package com.dong.auth.security.userdetails;

/**
 *
 * 用户账号状态枚举
 *
 * @author zhaodc
 * @date 2021/10/20 14:12
 **/
public enum UserState {
    NORMAL(0,"帐号状态正常"),
    LOCKED(1,"帐号被锁定"),
    PASSWORD_EXPIRED(2,"密码过期");

    private Integer code ;
    private String desc ;

    UserState(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
